package com.example.demo.testannotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2024-01-25
 * Time: 17:04
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Idempotent {
    /**
     * 请求表示符默认“requestId”
     * @return
     */
    String requstId() default "requestId";

    /**
     * 幂等时间默认60秒
     * @return
     */
    int expireTime() default 60;
}
